<?php

if(!empty($_POST))
{

	$re = insert('contact', $_POST);
	if($re)
	{
		echo '添加成功';
		header('Refresh:1;index.php?a=admin&b=contact&c=index');
		die;
	}
	else
	{
		echo '添加失败';
		header('Refresh:1;index.php?a=admin&b=contact&c=add');
		die;
	}	
}


include('app/admin/contact/html/add.html');
?>